package com.mycode.prototype05;

import com.mycode.prototype05.pm.OfficialDocument;
import com.mycode.prototype05.pm.PrototypeManager;

public class PmBootstrap {

    public static void main(String[] args) {
        PrototypeManager manager = PrototypeManager.getPrototypeManager();

        OfficialDocument document1 = manager.getOfficialDocument("far");
        document1.dispaly();
        OfficialDocument document2 = manager.getOfficialDocument("far");
        document2.dispaly();
        System.out.println(document1 == document2);

        OfficialDocument document3 = manager.getOfficialDocument("srs");
        document3.dispaly();
        OfficialDocument document4 = manager.getOfficialDocument("srs");
        document4.dispaly();
        System.out.println(document3 == document4);

    }
}
